home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / mincore.man < prev    next >
Encoding:
Text File  |  1989-11-29  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. MINCORE               C Library Procedures                MINCORE
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      mincore - check if pages are in memory
  10.  
  11. SSYYNNOOPPSSIISS
  12.      vvooiidd mmiinnccoorree((aaddddrr,, lleenn,, vveecc))
  13.      ccaaddddrr__tt aaddddrr;;
  14.      iinntt lleenn;;
  15.      cchhaarr vveecc[[]];;
  16.  
  17. DDEESSCCRRIIPPTTIIOONN
  18.      _M_i_n_c_o_r_e checks pages to see if they are in physical memory
  19.      and returns their state.
  20.  
  21.      For each page in the address range starting at address _a_d_d_r
  22.      and extending for _l_e_n bytes, a residency value is returned
  23.      in the return vector _v_e_c.
  24.  
  25.      The user must have allocated enough space in *_v_e_c to hold
  26.      the result vector.
  27.  
  28. RREETTUURRNN VVAALLUUEE
  29.      The values are returned in the vector vec.  0 indicates the
  30.      page is not virtually present (i.e. is an invalid address).
  31.      1 indicates the page is paged out.  2 indicates the page is
  32.      clean and unreferenced.  3 indicates the page is clean and
  33.      referenced.  4 indicates the page is dirty.
  34.  
  35. BBUUGGSS
  36.      This command is machine-dependent.  In particular, some
  37.      machines may not be able to determine if a page has been
  38.      referenced.
  39.  
  40. SSEEEE AALLSSOO
  41.      mmap(2)
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0             November 19, 1989                       1
  64.  
  65.  
  66.  
  67.